#!/bin/sh

# 加载工具类
. /etc/idnewnil/utils.sh

# 配置commands
DOMAIN=$(getstr '.["domain.home"]')
uci add luci command
uci set luci.@command[-1].name='格式化U盘'
uci set luci.@command[-1].command='erase sda'
uci add luci command
uci set luci.@command[-1].name='自签证书'
uci set luci.@command[-1].command="self-sign ${DOMAIN} /etc/self-sign/${DOMAIN}"
uci commit luci
